/**
 * 
 */
package it.fuesi.signit.fragments;

import it.fuesi.signit.R;
import it.fuesi.signit.adapters.SignaturesAdapter;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;


/**
 * @author pascotto
 *
 */
public class SettingsListFragment extends Fragment {

	private SignaturesAdapter adapter;
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		super.onCreateView(inflater, container, savedInstanceState);
		
		ListView rootView = (ListView)inflater.inflate(R.layout.settings_list, container, false);
		
		adapter = new SignaturesAdapter(inflater);
		
		rootView.setAdapter(adapter);
		
		return rootView;
	}
	
	
	@Override
	public void onResume() {
		super.onResume();
		adapter.fetch();
	}
	
}
